package cn.qicaiwang.open.common.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 消息
 * @author gaoxi
 * Date: 2020-12-29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Message implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;

    private String title;

    /**
     * message | notice
     */
    private String event;

    /**
     * text | image | video | audio | file | richtext
     */
    private String msgType;
    private String fromUserId;
    private String toUserId;
    private String result;
    private MessageBody message;
}